const userService = require('../service/user.service')

class UserController {
    findUserByName(name) {
        //name 不符合约定 则返回空数组
        if (!name) return []
        return userService.findUserByName(name)

    }
    findAllUser(){
        return userService.findAllUsers()
    }
}

module.exports = userController = new UserController()
